import React from 'react'
import { Button } from 'antd'
import { getHome } from '@/api/home'

const Home: React.FC = () => {
  const clickHandler = async () => {
    const a = await getHome()
    console.log(a)
  }
  return (
    <div>
      <h1>Home</h1>
      <div>
        <Button onClick={clickHandler}>点击发送请求</Button>
      </div>
    </div>
  )
}

export default Home
